JCAT.Class.CheckDependClasses(['JCAT.MVC.DataVerifier'],'JCAT.MVC.DataVerifier.RepeatVerifier') ;

JCAT.MVC.DataVerifier.RepeatVerifier = function(aUICtrl)
{
	JCAT.Class.AssertHasImplements(aUICtrl,'JCAT.MVC.UICtrl.IForm') ;
	this.aUICtrl = aUICtrl ;
}

JCAT.MVC.DataVerifier.RepeatVerifier.prototype.VerifyData = function(aAnotherUICtrl)
{
	JCAT.Class.AssertHasImplements(aAnotherUICtrl,'JCAT.MVC.UICtrl.IForm') ;
	if (aAnotherUICtrl.GetData() == this.aUICtrl.GetData())
	{
		return true ;
	}
	
	else
	{
		return JCAT.Language.Sentence('栏位“%s”和“%s”输入的内容不一致。','JCAT.JS',null
			, aUICtrl.GetUIName(), aAnotherUICtrl.GetUIName(), this.aUICtrl.GetUIName() ) ;
	}
}